﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CWCS.Core.Library.ScanManager
{
    /// <summary> 
    /// Author: Wesky 
    /// CreateTime: 2021/11/30 11:13:59 
    /// Description: 方法执行结果 实体类
    /// </summary>
    public class ReadResultInfo
    {
        /// <summary>
        /// 扫码是否成功
        /// </summary>
        public Boolean IsSucceed { get; set; } = false;
        /// <summary>
        /// 异常信息
        /// </summary>
        public String Message { get; set; } = "";
        /// <summary>
        /// 扫码结果
        /// </summary>
        public String Value { get; set; } = "";
        /// <summary>
        /// 耗时时间
        /// </summary>
        public long ElapsedMilliseconds { get; set; } = 0;

        /// <summary>
        /// 扫码器编号
        /// </summary>
        public string ReaderNo { get; set; } = "";
    }

    public class ReadConfigInfo
    {
        /// <summary>
        /// 站台编号
        /// </summary>
        public string station { get; set; }
        /// <summary>
        /// 扫码器IP
        /// </summary>
        public string ip { get; set; }
        /// <summary>
        /// 扫码器端口
        /// </summary>
        public int port { get; set; }
        /// <summary>
        /// 扫码器启用标记 
        /// </summary>
        public bool flag { get; set; }

        /// <summary>
        /// 扫码器描述
        /// </summary>
        public string name { get; set; }
    }
}
